home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / os2 / fm2_246.zip / ARCHIVER.BB2 next >
Text File  |  1996-05-19  |  16KB  |  705 lines

  1. 21
  2. ;That first line is how many lines/record in this archiver.bb2 file...
  3. ;very important, do not change.  Allows future modifications to the
  4. ;file to be transparent to older programs.
  5. ;
  6. ;ARCHIVER.BB2, archiver control file for XBBS-OS/2, XGROUP and AV
  7. ;KEEP A COPY OF THIS ORIGINAL FILE FOR INFORMATION LATER!
  8. ;
  9. ;format for this archiver.bb2 file (each entry has 21 lines):
  10. ;
  11. ; 1st line:  ID of archiver (like ARC, LHARC, PKZIP, etc.; human consumption)
  12. ; 2nd line:  normal extension for archives (like ZIP, ARC, LZH; note no period)
  13. ; 3rd line:  offset into file to signature
  14. ; 4th line:  list command
  15. ; 5th line:  extract command
  16. ; 6th line:  extract w/ directories command
  17. ; 7th line:  test archive command
  18. ; 8th line:  add/create command
  19. ; 9th line:  add/create w/ paths command
  20. ;10th line:  add/create & recurse command
  21. ;11th line:  move command
  22. ;12th line:  move w/ paths command
  23. ;13th line:  delete command
  24. ;14th line:  signature (case sensitive, leading spaces count!
  25. ;15th line:  startlist string
  26. ;16th line:  endlist string
  27. ;17th line:  old size position  (all positions 0-based, -1 = not available)
  28. ;18th line:  new size position
  29. ;19th line:  file date position[,type of date (0 for none)]
  30. ;20th line:  number of positions in dates (for "03 June 92" would be 3)
  31. ;21st line:  file name position (absolutely required, of course; -1 = last pos)
  32. ;
  33. ;a semicolon demarks a comment.  they may appear at any point *except*
  34. ;within the 21 lines of an archiver entry.  comments are ignored by AV.
  35. ;
  36. ;note that all archiver strings should include the archiver's parameter to
  37. ;prevent it from stopping for input!  also note that archive types are checked
  38. ;in order of their listing in this file.  finally, this file is set up for
  39. ;the archivers I had lying around; if yours are different versions, you may
  40. ;have to modify this file.  All archivers are OS/2 (or FAPI) versions.
  41. ;DOS archivers may work with FM/2, but it'll be up to you to set them up.
  42. ;
  43. ;date types supported:
  44. ;--------------------
  45. ;02-08-96  23:55:32            1
  46. ; 8 Feb 96 23:55:32            2
  47. ; 8 Feb 96  11:55p             3
  48. ;96-02-08 23:55:32             4
  49. ;
  50. ;
  51. ;how archive listing works (for the curious):
  52. ;
  53. ;AV first tries to find a signature match.  failing that, it checks
  54. ;to see if the file might be an ARC-format file.  If the latter, READARC.CMD
  55. ;is spawned (by XBBS) with ARC as the first argument and v as the second,
  56. ;followed by the filename (AV spawns ARC directly).  If the former, the list 
  57. ;command is sent, followed by the filename.  AV (and XBBS) then parses the
  58. ;resultant file using the start and end list lines and offsets in file lines
  59. ;listed in this file for the given archiver.
  60. ;
  61. ;Warning:  I'm told there's a bug in some versions of 4OS2 that can cause
  62. ;a call to an archiver to fail if the archiver has an extension (i.e.
  63. ;UNZIP works, UNZIP.EXE doesn't).  If things fail for no apparent reason
  64. ;and you're using 4OS2 you might keep it in mind.
  65. ;
  66. ;Sample C code to access this information is in sample.c in the AV
  67. ;distribution archive, and is free for the using in your own projects.
  68. ;
  69. ;-----------------Archiver data begins-----------------------
  70. ;
  71. ;This entry is for Zoo 2.1
  72. ;
  73. ;NOTE:  Bug in Zoo 2.1 seems to cause files stored with paths to
  74. ;be extracted w/ paths even when you don't ask it to do so...
  75. ;
  76. ;
  77. Zoo 2.1
  78. ZOO
  79. 20
  80. ZOO.EXE v
  81. ZOO.EXE xO
  82. ZOO.EXE xO/
  83. ZOO.EXE -test
  84. ZOO.Exe ah:
  85. ZOO.EXE ah
  86.  
  87. ZOO.EXE aM:h
  88. ZOO.EXE aMh
  89. ZOO.EXE -delete
  90. \xdc\xa7\xc4\xfd
  91. --------  --- --------  --------- --------
  92. --------  --- --------  --------- --------
  93. 0
  94. 2
  95. 3,2
  96. 3
  97. -1
  98. ;
  99. ; This entry is for LHarc 2.22.  Supposedly fixes bugs in earlier versions.
  100. ; Actually seems to have done so.  Good work, Peter.
  101. ;
  102. LHarc 2.22
  103. LZH
  104. 2
  105. LH.EXE /o l
  106. LH.EXE /o x
  107. LH.EXE /o /s x
  108. LH.EXE t
  109. LH.EXE /o a
  110.  
  111. LH.EXE /o /s a
  112. LH.EXE /o m
  113.  
  114. LH.EXE /o d
  115. -lh
  116.   -------- --------  -----------------------------------------
  117.   --------          -----------------------------------------
  118. 0
  119. -1
  120. 1,4
  121. 1
  122. 2
  123. ;
  124. ; Duplicate entry is for LHarc 2.22 using LH32 filename.
  125. ;
  126. LHarc-32 2.22
  127. LZH
  128. 2
  129. LH32.EXE /o l
  130. LH32.EXE /o x
  131. LH32.EXE /o /s x
  132. LH32.EXE t
  133. LH32.EXE /o a
  134.  
  135. LH32.EXE /o /s a
  136. LH32.EXE /o m
  137.  
  138. LH32.EXE /o d
  139. -lh
  140.   -------- --------  -----------------------------------------
  141.   --------          -----------------------------------------
  142. 0
  143. -1
  144. 1,4
  145. 1
  146. 2
  147. ;
  148. ; This entry is for LHarc 2.22 self-extractors.
  149. ;
  150. LHarc 2.22 SE
  151. LZH
  152. 22963
  153. LH.EXE /o l
  154. LH.EXE /o x
  155. LH.EXE /o /s x
  156. LH.EXE t
  157. LH.EXE /o a
  158.  
  159. LH.EXE /o /s a
  160. LH.EXE /o m
  161.  
  162. LH.EXE /o d
  163. -lh
  164.   -------- --------  -----------------------------------------
  165.   --------          -----------------------------------------
  166. 0
  167. -1
  168. 1,4
  169. 1
  170. 2
  171. ;
  172. ; This entry is for LHA 2.12 (DOS) self-extractors since LH 2.22 seems to
  173. ; recognize them.
  174. ;
  175. LHarc 2.12 DOS SE
  176. LZH
  177. 1638
  178. LH.EXE /o l
  179. LH.EXE /o x
  180. LH.EXE /o /s x
  181. LH.EXE t
  182. LH.EXE /o a
  183.  
  184. LH.EXE /o /s a
  185. LH.EXE /o m
  186.  
  187. LH.EXE /o d
  188. -lh
  189.   -------- --------  -----------------------------------------
  190.   --------          -----------------------------------------
  191. 0
  192. -1
  193. 1,4
  194. 1
  195. 2
  196. ;
  197. ; This entry is for LHA 2.13L (DOS) self-extractors since LH 2.22 seems to
  198. ; recognize them.
  199. ;
  200. LHarc 2.13 DOS SE
  201. LZH
  202. 36
  203. LH.EXE /o l
  204. LH.EXE /o x
  205. LH.EXE /o /s x
  206. LH.EXE t
  207. LH.EXE /o a
  208.  
  209. LH.EXE /o /s a
  210. LH.EXE /o m
  211.  
  212. LH.EXE /o d
  213. LHA's SFX 2.13L (c) Yoshi, 1991\r\n
  214.   -------- --------  -----------------------------------------
  215.   --------          -----------------------------------------
  216. 0
  217. -1
  218. 1,4
  219. 1
  220. 2
  221. ;
  222. ;
  223. ;This entry is for LH2 2.11.
  224. ;
  225. ;NOTE:  sometimes will put a file into an archive more than once, necessitating 
  226. ;deleting both.  EAs not handled well, but at least they're handled.
  227. ;
  228. LHarc 2.11
  229. LZH
  230. 2
  231. LH.EXE /o l
  232. LH.EXE /o x
  233. LH.EXE /o /s x
  234. LH.EXE t
  235. LH.EXE /o a
  236.  
  237. LH.EXE /o /s a
  238. LH.EXE /o m
  239.  
  240. LH.EXE /o d
  241. -lh
  242.   -------- -------- -----------------------------------------
  243.   --------          -----------------------------------------
  244. 0
  245. -1
  246. 1
  247. 1
  248. 2
  249. ;
  250. ;
  251. ;This entry is for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  252. ;ZIP/UNZIP should work with PKZIP 2.04 files.  Saves EAs well.  Won't
  253. ;extract a file stored with path without the path (actually, this seems
  254. ;to be fixed now.  Maybe.  There are dozens of versions floating around;
  255. ;you don't pays your money and you takes your chances).  If you have a
  256. ;version that won't extract files with paths without the paths, there's
  257. ;a workaround -- change the line "UNZIP.EXE -jo" below to "UNZIP.EXE -o".
  258. ;Because of broken ZIP archives floating around everywhere, this is here
  259. ;without the version flag in the signature (should really be PK\x3\x4\x14).
  260. ;Damnit, it looks like Katz's own software is what does the botching.  So
  261. ;much for the keeper of the ZIP standard...  Zip still seems to have to
  262. ;have erratic problems with creating archives with some pathnames...
  263. ;
  264. Zip/UnZip 1.9/5.0
  265. ZIP
  266. 0
  267. UNZIP.EXE -vUo
  268. UNZIP.EXE -jo
  269. UNZIP.EXE -o
  270. UNZIP.EXE -to
  271. ZIP.EXE -j9g
  272. ZIP.EXE -9g
  273. ZIP.EXE -r9g
  274. ZIP.EXE -mj9g
  275. ZIP.EXE -m9g
  276. ZIP.EXE -d
  277. PK\x3\x4
  278.  ------  ------   ----  -----   ----    ----   ------     ----
  279.  ------          ------  ---                              -------
  280. 0
  281. 2
  282. 4,1
  283. 2
  284. 7
  285. ;
  286. ;
  287. ;Duplicate entry is for ZIP 1.9/UNZIP 5.0 using 32 filenames.
  288. ;
  289. Zip/UnZip-32 1.9/5.0
  290. ZIP
  291. 0
  292. UNZIP32.EXE -vUo
  293. UNZIP32.EXE -jo
  294. UNZIP32.EXE -o
  295. UNZIP32.EXE -to
  296. ZIP32.EXE -j9g
  297. ZIP32.EXE -9g
  298. ZIP32.EXE -r9g
  299. ZIP32.EXE -mj9g
  300. ZIP32.EXE -m9g
  301. ZIP32.EXE -d
  302. PK\x3\x4
  303.  ------  ------   ----  -----   ----    ----   ------     ----
  304.  ------          ------  ---                              -------
  305. 0
  306. 2
  307. 4,1
  308. 2
  309. 7
  310. ;
  311. ;
  312. ;This entry is for PKZIP 1.01
  313. ;
  314. PK(Un)Zip 1.01
  315. ZIP
  316. 0
  317. PKZIP.EXE -v
  318. PKUNZIP.EXE -o
  319. PKUNZIP.EXE -o -d
  320. PKUNZIP.EXE -t
  321. PKZIP.EXE -a
  322. PKZIP.EXE -a -P
  323. PKZIP.EXE -a -p -r
  324. PKZIP.EXE -m
  325. PKZIP.EXE -m -P
  326. PKZIP.EXE -d
  327. PK\x3\x4\xa
  328.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  329.  ------          ------  ---                                 -------
  330. 0
  331. 2
  332. 4
  333. 2
  334. 8
  335. ;
  336. ;
  337. ;This entry is for PKZIP 1.01 named PK(Un)Zip2
  338. ;
  339. PK(Un)Zip2 1.01
  340. ZIP
  341. 0
  342. PKZIP2.EXE -v
  343. PKUNZIP2.EXE -o
  344. PKUNZIP2.EXE -o -d
  345. PKUNZIP2.EXE -t
  346. PKZIP2.EXE -a
  347. PKZIP2.EXE -a -P
  348. PKZIP2.EXE -a -p -r
  349. PKZIP2.EXE -m
  350. PKZIP2.EXE -m -P
  351. PKZIP2.EXE -d
  352. PK\x3\x4\xa
  353.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  354.  ------          ------  ---                                 -------
  355. 0
  356. 2
  357. 4
  358. 2
  359. 8
  360. ;
  361. ;This entry is for unzipsfx self-extractors
  362. ;
  363. unzipsfx
  364.  
  365. 217
  366. UNZIP.EXE -vUo
  367. UNZIP.EXE -jo
  368. UNZIP.EXE -o
  369. UNZIP.EXE -to
  370.  
  371.  
  372.  
  373.  
  374.  
  375. ZIP.EXE -d
  376. unzipsfx
  377.  ------  ------   ----  -----   ----    ----   ------     ----
  378.  ------          ------  ---                              -------
  379. 0
  380. 2
  381. 4,1
  382. 2
  383. 7
  384. ;
  385. ;
  386. ;This entry is for PKZIP self-extractors type 1
  387. ;
  388. PK(Un)Zip SE #1
  389.  
  390. 2934
  391. PKZIP.EXE -v
  392. PKUNZIP.EXE -o
  393. PKUNZIP.EXE -o -d
  394. PKUNZIP.EXE -t
  395.  
  396.  
  397.  
  398.  
  399.  
  400. PKZIP.EXE -d
  401. PK\x3\x4
  402.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  403.  ------          ------  ---                                 -------
  404. 0
  405. 2
  406. 4
  407. 2
  408. 8
  409. ;
  410. ;This entry is for PKZIP self-extractors type 2
  411. ;
  412. PK(Un)Zip SE #2
  413.  
  414. 12784
  415. PKZIP.EXE -v
  416. PKUNZIP.EXE -o
  417. PKUNZIP.EXE -o -d
  418. PKUNZIP.EXE -t
  419.  
  420.  
  421.  
  422.  
  423.  
  424. PKZIP.EXE -d
  425. PK\x3\x4
  426.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  427.  ------          ------  ---                                 -------
  428. 0
  429. 2
  430. 4
  431. 2
  432. 8
  433. ;
  434. ;
  435. ;
  436. ;This entry is for PKZIP self-extractors type 3
  437. ;
  438. PK(Un)Zip SE #2
  439.  
  440. 30948
  441. PKZIP.EXE -v
  442. PKUNZIP.EXE -o
  443. PKUNZIP.EXE -o -d
  444. PKUNZIP.EXE -t
  445.  
  446.  
  447.  
  448.  
  449.  
  450. PKZIP.EXE -d
  451. PK\x3\x4
  452.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  453.  ------          ------  ---                                 -------
  454. 0
  455. 2
  456. 4
  457. 2
  458. 8
  459. ;
  460. ;This entry is for Unarj 2.10 ported by Scott Dudley
  461. ;
  462. (Un)Arj 2.10
  463.  
  464. 0
  465. UNARJ.EXE l
  466. UNARJ.EXE e
  467. UNARJ.EXE x
  468. UNARJ.EXE t
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475. \x60\xea
  476. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  477. ------------ ---------- ---------- ----- -----------------
  478. 1
  479. 2
  480. 4,4
  481. 1
  482. 0
  483. ;
  484. ;This entry is for Unarj 2.30 demo version.  Don't use Unarj 2.41; it's broken.
  485. ;
  486. (Un)Arj 2.30 demo
  487.  
  488. 0
  489. UNARJ.EXE l
  490. UNARJ.EXE e
  491. UNARJ.EXE x
  492. UNARJ.EXE t
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499. \x60\xea
  500. ------------ ---------- ---------- ----- ----------------- -------- -----------
  501. ------------ ---------- ---------- ----- -----------------
  502. 1
  503. 2
  504. 4
  505. 1
  506. 0
  507. ;
  508. ;This entry is for Arj 2.00 (DOS)
  509. ; Note that other programs that use this control file may not be able to
  510. ; handle calling a DOS archiver correctly!  FM/2 is the only one that I
  511. ; know of which can at this time.  This means you may need to keep FM/2's
  512. ; ARCHIVER.BB2 separate from those for other programs.
  513. ;
  514. Arj 2.00 DOS
  515. ARJ
  516. 0
  517. ARJ.EXE l
  518. ARJ.EXE e -y
  519. ARJ.EXE x -y
  520. ARJ.EXE t
  521. ARJ.EXE a -y -e
  522. ARJ.EXE a -y
  523. ARJ.EXE a -y -r
  524. ARJ.EXE m -y -e
  525. ARJ.EXE m -y
  526. ARJ.EXE d -y
  527. \x60\xea
  528. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  529. ------------ ---------- ---------- -----
  530. 1
  531. 2
  532. 4
  533. 1
  534. 0
  535. ;
  536. ;This entry is for ARC 5.12mpl
  537. ;
  538. Arc 5.12mpl
  539. ARC
  540. 0
  541. ARC.EXE lwn
  542. ARC.EXE ewn
  543.  
  544. ARC.EXE t
  545. ARC.EXE awn
  546.  
  547.  
  548. ARC.EXE mwn
  549.  
  550. ARC.EXE dwn
  551. \x1a
  552. ============  ========  =========
  553.         ====  ========
  554. 1
  555. -1
  556. 2,3
  557. 3
  558. 0
  559. ;
  560. ;This entry is for ARC2 (6.0)
  561. ;Note that I don't actually have a copy of this...
  562. ;
  563. Arc 6.0
  564. ARC
  565. 0
  566. ARC.EXE l
  567. ARC.EXE ewn
  568.  
  569. ARC.EXE t
  570. ARC.EXE awn
  571.  
  572.  
  573. ARC.EXE mwn
  574.  
  575. ARC.EXE dwn
  576. \x1a
  577. =================  ========  =========
  578.              ====  ========
  579. 1
  580. -1
  581. 2
  582. 3
  583. 0
  584. ;
  585. ;
  586. ;Duplicate entry is for ARC2 (6.0) using ARC2 filename.
  587. ;
  588. Arc 6.0
  589. ARC
  590. 0
  591. ARC2.EXE l
  592. ARC2.EXE ewn
  593.  
  594. ARC2.EXE t
  595. ARC2.EXE awn
  596.  
  597.  
  598. ARC2.EXE mwn
  599.  
  600. ARC2.EXE dwn
  601. \x1a
  602. =================  ========  =========
  603.              ====  ========
  604. 1
  605. -1
  606. 2
  607. 3
  608. 0
  609. ;
  610. ;-----------------Archiver data ends-----------------------
  611. ;
  612. ;
  613. ; For possible future use:
  614. ;
  615. ; Squeeze-it signature:  (Offset 0)     \x48\x4C\x53\x51\x5Ah
  616. ; HA signature:          (Offset 0)     HA
  617. ; HAP signature:         (Offset 0)     \x913HF
  618. ; HPK signature:         (Offset 0)     HPAK
  619. ; SQZ signature:         (Offset 0)     HLSQZ
  620. ; DWZ signature:         (Offset -3)    DWC
  621. ;
  622. ; No OS/2 versions available yet to my knowledge...
  623. ;
  624. ;
  625. ;
  626. ;Notes on modifying/updating this file:
  627. ;=====================================
  628. ;
  629. ;You can add as many archivers as you like to this file.
  630. ;here are some suggestions on how to go about it:
  631. ;
  632. ;list an archive with the archiver, redirecting to a disk
  633. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  634. ;file into a text editor.  Clip out the startlist and endlist
  635. ;strings and paste directly into this file on the appropriate
  636. ;lines; prevents errors due to typos when copying manually.
  637. ;Count the positions of filename, date, etc. and place on the
  638. ;appropriate line.  Now run the archiver redirected to a file
  639. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  640. ;Look for the various command options (extract, list, etc.) and
  641. ;put them into the file on the appropriate lines -- remember to
  642. ;add the modifiers to prevent the archiver from stopping to ask
  643. ;questions!  You could be in deep doo-doo if it's a detached
  644. ;process.  While it may seem a pain in the arse to have to
  645. ;edit this file when an archiver changes its command structure
  646. ;or list format, at least it's something within your control;
  647. ;you don't have to wait for an update to AV.  That means if I
  648. ;die tomorrow you'll still be able to use AV for years to come.
  649. ;
  650. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  651. ;
  652. ;----------------cut here----------------------
  653. ;Name          Length    Date
  654. ;============  ========  =========    <--this line is start-of-list
  655. ;MAKEFILE           374  28 Nov 89
  656. ;QSORT.C          14279  29 Nov 89
  657. ;QSORT.EXE        24629  29 Nov 89
  658. ;STUFF.H            371  29 Nov 89
  659. ;        ====  ========               <--this line is end-of-list
  660. ;Total      4     39653
  661. ;----------------cut here----------------------
  662. ;
  663. ;Note the filename is in position 0, old length in position 1, and the
  664. ;date starts in position 2, with 3 parts, and there's no new length
  665. ;field (so it'd be -1).  Compare that to the archiver entry for
  666. ;ARC 5.12mpl above and you should get a feel for what all those fields
  667. ;mean.  Here's a diagram of how a file line breaks down:
  668. ;
  669. ;STUFF.H            371  29 Nov 89
  670. ;  ^                 ^   ^
  671. ;  |                 |   |
  672. ;  |                 |   +--Date starts in field 2, 3 parts (29, Nov, and 89)
  673. ;  |                 |
  674. ;  |                 +--Old file length, field 1
  675. ;  |
  676. ;  +--Filename, field 0 (count from 0, not 1)
  677. ;
  678. ;
  679. ;If you're adding an entirely new archive format, note that you can
  680. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  681. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  682. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  683. ;indicated by ARC's line 3, the offset into a file for the signature)
  684. ;of a file to determine if it's an archive.  If line 3's offset is
  685. ;negative, AV looks from the end of the file instead of the beginning.
  686. ;You can usually figure out what an archiver's signature is by looking
  687. ;at a few archives with a file viewing program like Vernon Buerg's 
  688. ;LIST.  By all means send me anything new you figure out for inclusion
  689. ;in future releases.
  690. ;
  691. ;
  692. ;You can have several entries for one type of archive in this file.  AV
  693. ;tries entries sequentially to list the file until it finds one that works.
  694. ;If the first entry for a signature doesn't work, and AV finds one that
  695. ;does, it moves that entry to the top of the list and rewrites ARCHIVER.BB2
  696. ;to make future accesses faster.  This allows me to list everything I can
  697. ;get entries for and let AV sort out what the user actually has that works.
  698. ;It also lets you, the user, create archives with more than one archiver that
  699. ;produces the same sort of archive (or with different switches, like one with
  700. ;LHArc producing -lh5- compression and one with it producing old, compatible
  701. ;-lh1- compression).
  702. ;
  703. ;
  704. ;always end file with blank line or comment
  705.